package com.beesphere.excel.writer.style.resolvers;

import java.lang.reflect.Method;

import com.beesphere.excel.writer.impls.WorkbookContext;


public class FontResolver extends MethodBasedStyleResolver {

	private static final long serialVersionUID = 4328705651901224107L;

	public FontResolver(Method method) {
		super(method);
	}

	@Override
	public Object create (WorkbookContext workbookContext) {
		return workbookContext.getWorkbook ().createFont();
	}

	@Override
	protected Object getValue (WorkbookContext workbookContext, Object applyTo, Object value) {
		return value;
	}

}
